/*
 * Studenci.cpp
 *
 * Version: $Id: Studenci.cpp 66 2011-11-26 12:49:59Z s8376@pjwstk.edu.pl $
 */
#include <iostream>
#include "Student.h"
#include "Studenci.h"

using namespace std;

Studenci::Studenci(int number)
{
    m_studenci = new Student*[number];
    m_counter = 0;
    m_size = number;
}
Studenci::Studenci(const Studenci&)
{

}
Studenci::~Studenci()
{
    for (int i; i < m_size; i++) {
        delete m_studenci[i];
    }
    delete[] m_studenci;
    m_studenci = 0;
}
Studenci* Studenci::add(Student* s)
{
    if (m_counter >= m_size) {
        cout << "Przekroczono rozmiar tablicy" << endl;
        return NULL;
    }

    m_studenci[m_counter] = new Student(*s);
    m_counter++;

    return this;
}
void Studenci::show()
{
    cout << "Show" << endl;
}
